<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;
Route::group(function () {

    Route::post('xlogin', 'User/xLogin');
    Route::post('gLogin', 'User/gLogin');
    Route::post('testLogin', 'User/testLogin');
    Route::post('getXcxUserInfo', 'User/getXcxUserInfo');
    Route::post('getGzhUserInfo', 'User/getGzhUserInfo');
    Route::post('getUserPhone', 'User/getUserPhone');
    Route::post('upload', 'Publice/upload'); // 上传
    Route::post('poster', 'Publice/poster'); //
    Route::post('config', 'Publice/getConfig'); //
    Route::post('getAddress', 'Publice/getAddress'); //
    Route::post('getPhone', 'User/getPhone'); //
    Route::post('levelGzhOrder', 'Callback/levelGzhOrder'); //
    Route::post('levelXcxOrder', 'Callback/levelXcxOrder'); //
    Route::post('sendMessage', 'User/sendMessage'); //
    Route::post('communityList', 'Community/communityList');
    Route::post('daziList', 'Dazi/daziList');
    Route::post('serviceList', 'Service/serviceList');
    Route::post('circleList', 'Circle/circleList');
    Route::post('tabList', 'TabClass/tabList');
    Route::post('userList','User/userList');
    Route::post('rollMessage','Publice/rollMessage');
 //

    Route::post('rechargeXcxOrder', 'Callback/rechargeXcxOrder'); //
    Route::post('rechargeGzhOrder', 'Callback/rechargeGzhOrder');


    Route::post('gsign', 'User/gsign'); //
    Route::post('xsign', 'User/xsign'); ///
    Route::post('payAmount', 'Publice/payAmount'); //
})->middleware(\app\http\middleware\AllowOrigin::class);

Route::group(function () {
    Route::group(function () {
        Route::post('userinfo', 'User/userinfo');
        Route::post('followUser', 'User/followUser');
        Route::post('myFollowUser', 'User/myFollowUser');
        Route::post('myFansUser', 'User/myFansUser');
        Route::post('visitUser', 'User/visitUser');
        Route::post('myVisitLog', 'User/myVisitLog');
        Route::post('visitMeLog', 'User/visitMeLog');
        Route::post('fans', 'User/fans');
        Route::post('secondFans', 'User/secondFans');
        Route::post('distributionLog', 'User/distributionLog');
        Route::post('amountLog', 'User/amountLog');
        Route::post('authentication', 'User/authentication');
        Route::post('userLevel', 'Publice/userLevel');
        Route::post('nearUser','User/nearUser');
     
        Route::post('bindUser','User/bindUser');
        Route::post('chatList','User/chatList');
        Route::post('chatMessageList','User/chatMessageList');
        Route::post('removeChat','User/removeChat');
        Route::post('readChatMessage','User/readChatMessage');
        Route::post('updateAddress', 'user/updateAddress'); //
        Route::post('message', 'User/message');
        Route::post('unReadMessage', 'User/unReadMessage');
        Route::post('readNoticeMessage','User/readNoticeMessage');

        Route::post('checkUserPhone','User/checkUserPhone');
        Route::post('checkMeUser','User/checkMeUser');
        Route::post('meCheckUser','User/meCheckUser');
        Route::post('agreeCheck','User/agreeCheck');
        Route::post('checkUser','User/checkUser');
        Route::post('chatMessagePrice','User/chatMessagePrice');



    });
    Route::group(function () {

        Route::post('labelList', 'TabClass/labelList');
        Route::post('addLabel', 'TabClass/addLabel');
    });

    Route::group(function () {
        Route::post('exchangeVip', 'order/exchangeVip');
        Route::post('buyVip', 'order/buyVip');
        Route::post('rechargeOrder', 'order/RechargeOrder');
        Route::post('rechargeOrderList', 'order/rechargeOrderList');
        Route::post('userLevelOrderList', 'order/userLevelOrderList');

    });
    Route::group(function () {
        Route::post('addDazi', 'Dazi/addDazi');

        Route::post('joinDazi', 'Dazi/joinDazi');
        Route::post('updateDazi', 'Dazi/updateDazi');
        Route::post('daziInfo', 'Dazi/daziInfo');
        Route::post('joinDaziList', 'Dazi/joinDaziList');
        Route::post('endTime', 'Dazi/endTime');
        Route::post('kickUser', 'Dazi/kickUser');
        Route::post('updateDaziStatus', 'Dazi/updateDaziStatus');
        Route::post('signOut', 'Dazi/signOut');
        Route::post('top', 'Dazi/top');
    });
    Route::group(function () {
        Route::post('addService', 'Service/addService');

        Route::post('placeServiceOrder', 'Service/placeServiceOrder');
        Route::post('serviceUserOrder', 'Service/serviceUserOrder');
        Route::post('myServiceOrder', 'Service/myServiceOrder');
        Route::post('takingServiceOrder', 'Service/takingOrder');
        Route::post('refuseServiceOrder', 'Service/refuseServiceOrder');
        Route::post('completeServiceOrder', 'Service/completeServiceOrder');
        Route::post('commentService', 'Service/commentService');
        Route::post('settlementService', 'Service/settlementService');
        Route::post('upServiceStatus', 'Service/upServiceStatus');
        Route::post('serviceInfo', 'Service/serviceInfo');
        Route::post('serviceCommentList', 'Service/serviceCommentList');
        Route::post('editService', 'Service/editService');
        Route::post('serviceTop', 'Service/serviceTop');

    });
    Route::group(function () {
        Route::post('addCircle', 'Circle/addCircle');
        Route::post('updateCircle', 'Circle/updateCircle');

        Route::post('circleInfo', 'Circle/circleInfo');
        Route::post('comment', 'Circle/comment');
        Route::post('replyComment', 'Circle/replyComment');
        Route::post('commentList', 'Circle/commentList');
        Route::post('replyCommentList', 'Circle/replyCommentList');
        Route::post('commentLike', 'Circle/commentLike');
        Route::post('circleLike', 'Circle/circleLike');
        Route::post('updateCircleStatus', 'Circle/updateCircleStatus');

    });
    Route::group(function () {
        Route::post('applyWithdrawal', 'Withdrawal/applyWithdrawal');
        Route::post('withdrawalList', 'Withdrawal/withdrawalList');
        Route::post('withdrawalInfo', 'Withdrawal/withdrawalInfo');
    });
    Route::group(function () {
        Route::post('income', 'Statistics/income');

    });
    Route::group(function () {
        Route::post('addCommunity', 'Community/addCommunity');

        Route::post('editCommunity', 'Community/editCommunity');
        Route::post('joinCommunity', 'Community/joinCommunity');
        Route::post('communityInfo', 'Community/communityInfo');
        Route::post('myJoinCommunity', 'Community/myJoinCommunity');
        Route::post('updateCommunityStatus', 'Community/updateCommunityStatus');
        Route::post('communityUser', 'Community/communityUser');

    });

})->middleware(\app\http\middleware\CheckToken::class)
    ->middleware(\app\http\middleware\AllowOrigin::class);
